package com.helloaps.scheduling.domain;

import ai.timefold.solver.core.api.domain.lookup.PlanningId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.Duration;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Material {
    @PlanningId
    private String id;
    private String code;
    private String name;
    /**
     * BOM中的层级，0/1/2/3/...
     */
    private String level;
    /**
     * 版本
     */
    private String version;
    /**
     * 型号
     */
    private String model;
    private String remark;

    private Material parent;
    private List<Material> components;
}
